package com.example.food.repository;

import com.example.food.bean.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface UserRepository extends JpaRepository<User, Integer> {

    User findByUserName(String userName);

    //@Query(value="select * from user",nativeQuery = true)
    List<User> findByType(String type);
}
